<template>
	<view class="">
			<!-- #ifdef MP-WEIXIN -->
				<image class="card-content-img1"  :src="floatData.img"
					@click="handleBannerClick"></image>		
			<!-- #endif -->				
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				x: this.floatX, //x坐标
				y: this.floatY, //y坐标
			}
		},
		props: ['floatData','floatX','floatY','floatFrom']
		,
		methods: {
			handleBannerClick() {
				this.currentBanner = {
					originalData: this.floatData,
					from: this.floatFrom,
				};
				console.log(this.currentBanner,'this.currentBanner');
				this.$u.debounce(this._bannerDebounce, this.$debounceTime, true);
			},
			_bannerDebounce() {
				this.$utils.oldCommonJump(this.currentBanner);
			},
		}
	}
</script>


<style lang="scss">
	.card-content-img1 {
		width: 150rpx;
		height: 150rpx;
	}
	/* $all_width: 150rpx;
	$all_height: 150rpx;

	.movable-area {
		height: 100vh;
		width: 750rpx;
		top: 0;
		position: fixed;
		pointer-events: none; //此处要加，鼠标事件可以渗透
		z-index: 99;

		.movable-view {
			width: $all_width;
			height: $all_height;
			pointer-events: auto; //恢复鼠标事件

			image {
				width: $all_width;
				height: $all_height;

			}
		}
	} */
</style>